﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace BanXeTang
{
    public class CharacterManager : EntityManager
    {
        public override void InitPrototypes(ContentManager contentManager)
        {
            _nprototype = 4;
            _prototype = new VisibleGameEntity[_nprototype];

            _prototype[0] = new MyTank();
            _prototype[0].Init(contentManager, 4, "tank");
            ((MyTank)_prototype[0]).nDelay = 5;
            ((MyTank) _prototype[0]).nDoTre = 50;
            ((MyTank)_prototype[0]).tocDo = GlobalSettings.doDoi;
            ((MyTank) _prototype[0]).maxMau = 5;
            ((MyTank) _prototype[0]).maxMang = 3;

            _prototype[1] = new VienDan();
            _prototype[1].Init(contentManager, 1, "DanThuong");
            ((VienDan) _prototype[1]).tocDo = 8;

            _prototype[2] = new TankDichLoai1();
            _prototype[2].Init(contentManager, 4, "TankDich");
            ((TankDichLoai1) _prototype[2]).nDelay = 5;
            ((TankDichLoai1) _prototype[2]).tocDo = 1;
            ((TankDichLoai1) _prototype[2]).tamKiemSoat = 600;
            ((TankDichLoai1) _prototype[2]).nDoTre = 100;
            ((TankDichLoai1) _prototype[2]).maxMau = 3;
            ((TankDichLoai1) _prototype[2]).thoiGianTatTimDiet = 60;

            _prototype[3] = new TankDichLoai2();
            _prototype[3].Init(contentManager, 4, "TankDich");
            ((TankDichLoai2)_prototype[3]).nDelay = 5;
            ((TankDichLoai2)_prototype[3]).tocDo = 0.8f;
            ((TankDichLoai2)_prototype[3]).tamKiemSoat = 500;
            ((TankDichLoai2)_prototype[3]).nDoTre = 100;
            ((TankDichLoai2) _prototype[3]).maxMau = 2;
            ((TankDichLoai2) _prototype[3]).thoiGianTatTimDiet = 80;
        }
    }
}
